package com.sally.android;

//import com.commonsware.android.activities.R;
import com.google.android.maps.*;
import android.view.View.OnClickListener; 


import android.location.*;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RatingBar;

public class HomeActivity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
	//protected EditText myWant;
	//protected RatingBar chooseRating;
	protected Button clickMe;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        // Connect interface elements to properties
        //myWant = (EditText) findViewById(R.id.myWant);
        ///chooseRating = (RatingBar) findViewById(R.id.chooseRating);
        clickMe = (Button) findViewById(R.id.clickMe);
        clickMe.setOnClickListener(this);
  //      clickMe.setVisibility(View.INVISIBLE);
    }    
    
    //Setting up click listeners
    public void onClick(View view)
    {
    	Intent myLocationActivity = new Intent(this, MyLocationActivity.class);
    	startActivity(myLocationActivity);
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
		// just adding a few little things to the book example
//		LocationManager lm = (LocationManager)getSystemService(LOCATION_SERVICE);
//		Location fix = lm.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
//		double latitude = fix.getLatitude() + (Math.random()*.000009*1000) - .000009*500;
//		double longitude = fix.getLongitude() + (Math.random()*.000009*1000) - .000009*500;;
   
    /*public void myClickHandler(View view){
    	MyLocationOverlay find_me_first = new MyLocationOverlay(null, null);
    	find_me_first.enableMyLocation();
    
    	GeoPoint geo_point = find_me_first.getMyLocation();
    }
    
    public void findMe(View v) {
		//startActivity(new Intent(Intent.ACTION_VIEW));
		setContentView(R.layout.mylocation);
    }*/
    
}